﻿@model IEnumerable<APH.Parl2.Client.Internet.MVC.Parl2DataServiceReference.Parliamentarian>

@{
    View.Title = "AllMembers";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>List of all members</h2>

<table>
    <tr>
        <th>
        Member
        </th>
        </th>
        
        
        <th>
            Honorific
        </th>
        <th>
            Electorate
        </th>
        <th>
            State
        </th>
        <th>
            Party
        </th>
        <th>
            Chamber
        </th>
        <th>
            Telephone
        </th>
     
        
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>            
            @item.Title @Html.ActionLink(String.Concat(@item.Title , " " , item.FirstName , " " ,@item.Surname), "Member", new { id = item.CPALId })
                       
        </td>        
        <td>
            @item.Honorific
        </td>
        <td>
            @item.Electorate
        </td>
        <td>
            @item.State
        </td>
        <td>
            @item.Party
        </td>
        <td>
            @item.Chamber
        </td>
        <td>
            @item.Telephone
        </td>
        
 
     
    </tr>
}

</table>

